import { createRoot } from 'react-dom/client'
import './index.css'

// const con = <div style={{ width: 100, height: '100px', backgroundColor: 'pink', color: 'green', textAlign: 'center', lineHeight: '100px' }}>React</div>
const con = <div className='title'>React</div>

// createRoot(渲染到哪儿).render(渲染谁)
createRoot(document.querySelector('#root')).render(con)
